<style>
	table.gridtable {
		font-size:11px;
		color:#333333;
		border-width: 1px;
		border-color: #666666;
		border-collapse: collapse;
	}
	table.gridtable th {
		border-width: 1px;
		padding: 8px;
		border-style: solid;
		border-color: #666666;
		background-color: #dedede;
	}
	table.gridtable td {
		border-width: 1px;
		padding: 8px;
		border-style: solid;
		border-color: #666666;
		background-color: #ffffff;
	}

	table.gridtable2 {
		font-size:12px;
		color:#333333;
		border-width: 0px;
		border-color: #666666;
		border-collapse: collapse;
	}
	table.gridtable2 th {
		border-width: 0px;
		padding: 8px;
		border-style: solid;
		border-color: #666666;
		background-color: #dedede;
	}
</style>
<form id="form1" method="post" style="margin:10px;">
	<div class="fitem">
		<table class="gridtable2" width="75%">
			<tr>
				<th width="75%">Data Keluarga</th>	
			</tr>
			<tr>
				<td width="75%"></td>	
			</tr>
		</table>
	</div>
	<div class="fitem" >
		<label style="width:150px">No. Kartu Keluarga </label>:
		<label><?=$id_keluarga?></label>
	</div>
	<div class="fitem" >
		<label style="width:150px">Kepala Keluarga </label>:
		<label><?=$nama_kk?></label>
	</div>
	<div class="fitem" >
		<label style="width:150px">Alamat </label>:
		<label><?=$alamat?></label>
	</div>
	<div class="fitem" >
		<label style="width:150px">Dusun</label>:
		<label><?=$dusun?></label>
	</div>
	<div class="fitem" >
		<label style="width:150px">RT</label>:
		<label><?=$rt?></label>
	</div>
	<div class="fitem" >
		<label style="width:150px">RW </label>:
		<label><?=$rw?></label>
	</div>
	<div class="fitem" >
		<label style="width:150px">Ekonomi </label>:
		<label><?=$ekonomi?></label>
	</div>
	<div class="fitem">
		<table class="gridtable2" width="75%">
			<tr>
				<th width="75%">Anggota Keluarga</th>	
			</tr>
			<tr>
				<td width="75%"></td>	
			</tr>
		</table>
	</div>
	<div>
		<table class="gridtable">
					<tr>
						<th width="150px">No. KTP</th>
						<th width="200px">Nama</th>
					</tr>
				<?php 
					foreach ($anggota_keluarga->result() as $row) {
				?>
					<tr>
						<td><?=$row->no_ktp?></td>
						<td><?=$row->nama?></td>
					</tr>
				<?php } ?>
		</table>
	</div>
</form>
